package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ForwardService {

    //转发捐赠
    @POST("/user/forwardDonation")
    Call<CommonResult> forwardDonation(@Body Object body);

    //根据 转赠id，查询 该笔 转赠 下的 捐赠记录
    @POST("/user/queryForwardDonations")
    Call<CommonResult> queryForwardDonations(@Body Object body);

    //查询收到的 捐赠转发记录
    @POST("/user/loadForwardRecords")
    Call<CommonResult> loadForwardRecords(@Body Object body);

    /**
     * 根据 forwardId 查询一个forward完整信息
     *
     * @param body
     * @return
     */
    @Deprecated
    @POST("/user/getForwardInfo")
    Call<CommonResult> getForwardInfo(@Body Object body);

    /**
     * 返回包含 管理员 和捐赠对象的转赠信息
     *
     * @param body
     * @return
     */
    @POST("/user/getForwardInfo_v1")
    Call<CommonResult> getForwardInfo_v1(@Body Object body);

    /**
     * 举报转赠
     *
     * @param body
     * @return
     */
    @POST("/user/accusationForward")
    Call<CommonResult> accusationForward(@Body Object body);

    /**
     * 给转发点赞
     *
     * @param body
     * @return
     */
    @POST("/user/addForwardPraise")
    Call<CommonResult> addForwardPraise(@Body Object body);

    /**
     * 取消转发的点赞
     *
     * @param body
     * @return
     */
    @POST("/user/removeForwardPraise")
    Call<CommonResult> removeForwardPraise(@Body Object body);
}
